

function showMonthlySchedule() {
	location.href="main.jsp?inc=../calendar/cal_month.jsp&left_menu=../calendar/cal_menu.jsp";
}

function showWeeklySchedule() {
	location.href="main.jsp?inc=../calendar/cal_week.jsp&left_menu=../calendar/cal_menu.jsp";
}

function showDailySchedule() {
	location.href="main.jsp?inc=../calendar/cal_today.jsp&left_menu=../calendar/cal_menu.jsp";
}

function changeDate(){
	var y=document.getElementById("y").value;
	var m=document.getElementById("m").value;
	var url="cal_month.jsp?y="+y+"&m="+m;

	location.href="main.jsp?inc=../calendar/"+url+"&left_menu=../calendar/cal_menu.jsp"; //url이 가지고 있는 값으로 이동
}

function showCal(d){
	var y=document.getElementById("y").value;
	var m=document.getElementById("m").value;
	var url="cal_month.jsp?y="+y+"&m="+m+"&d="+d;

	location.href="main.jsp?inc=../calendar/"+url+"&left_menu=../calendar/cal_menu.jsp"; //url이 가지고 있는 값으로 이동
}

function insert_schedule(y,m,d) {
	alert(y+m+d)
	var frm;
	var openPageSrc = "/group/calendar/cal_insert_schedule.jsp?y="+y+"&m="+m+"&d="+d;
	var openPageName = "일정 추가";
	var openPageFunction = "width=450, height=500, resizable=no, location=no" +
			"menubar=no, scrollbars=no, status=no, fullscreen=no, channelmode=no," +
			"left=300, top=300";
	var openPageOption = false;
	
	var pop = window.open(openPageSrc, openPageName, openPageFunction, openPageOption);
	pop.focus();
}

function modify_schedule(y,m,d) {
	var frm;
	var openPageSrc = "/group/calendar/cal_modify_schedule.jsp?y="+y+"&m="+m+"&d="+d;
	var openPageName = "일정 추가";
	var openPageFunction = "width=450, height=500, resizable=no, location=no" +
			"menubar=no, scrollbars=no, status=no, fullscreen=no, channelmode=no," +
			"left=300, top=300";
	var openPageOption = false;
	
	var pop = window.open(openPageSrc, openPageName, openPageFunction, openPageOption);
	pop.focus();
}